package com.cndw.kungfu.dao;

import java.util.List;
import java.util.Map;

import com.cndw.dao.jade.annotation.DAO;
import com.cndw.dao.jade.annotation.KeyColumnOfMap;
import com.cndw.dao.jade.annotation.SQL;
import com.cndw.kungfu.domain.LevelUpgrade;
import com.cndw.kungfu.domain.Script;
import com.cndw.kungfu.domain.Story;
import com.cndw.kungfu.domain.Undercity;
import com.cndw.kungfu.domain.Vocation;

/**
 * 系统简单模块接口存放
 * @author fantadust
 * @date 2011-5-19 下午08:03:59
 */
@DAO
public interface SimpleModuleDao {
	
	/**
	 * 获取职业信息配置
	 * @return
	 */
	@SQL("select id,name,description,hp,mp,power,physical,agile,wit,addHp,addMp,addPower,addPhysical,addAgile,addWit,sex from kfsys_vocation ")
	public List<Vocation> selectVocation();
	
	@SQL("select id,name,description,windowName,parameters from kfsys_script order by id asc")
	public List<Script> selectScript();

	@SQL("select id,name,type,level,levelMax,personType,sortLevel,awardId,icon,times,enterSceneId,exitSceneId,sceneIds,info from kfsys_undercity order by id asc")
	public List<Undercity> selectUndercity();
	
	@SQL("select level,playerExp,discipleExp,petExp,discipleMax,campMax from kfsys_level_upgrade order by level asc ")
	@KeyColumnOfMap("level")
	public Map<Integer, LevelUpgrade> selectLevelUpgread();
	
	@SQL("select id,name,type,movie,dialogue from kfsys_story order by id asc ")
	@KeyColumnOfMap("id")
	public Map<Integer, Story> getStoryMap();
	

	
	
}
